#include <aphw/Params.hpp>

#include <boost/python.hpp>
#include <ham/hamsterdb.h>

using namespace boost::python;

namespace
{

enum Params
{
    CACHESIZE = HAM_PARAM_CACHESIZE,
    DATA_ACCESS_MODE = HAM_PARAM_DATA_ACCESS_MODE,
    GET_FLAGS = HAM_PARAM_GET_FLAGS,
    KEYSIZE = HAM_PARAM_KEYSIZE, 
    PAGESIZE = HAM_PARAM_PAGESIZE
};

}

namespace aphw
{

void init_Params()
{
    enum_< ::Params >("Params")
        .value("CACHESIZE", ::CACHESIZE)
        .value("DATA_ACCESS_MODE", ::DATA_ACCESS_MODE)
        .value("GET_FLAGS", ::GET_FLAGS)
        .value("KEYSIZE", ::KEYSIZE)
        .value("PAGESIZE", ::PAGESIZE)
        ;

}

}
